<div class="col-xs-6 col-sm-3 sidebar-offcanvas small" id="sidebar">
    {% include 'common/search.html' %}
    <ul class="nav nav-pills">
        <li role="presentation" class="col-xs-12">
            <h3>分类目录</h3>
            <br>
        </li>
        {% for category in g.categorys %}
            <li role="presentation" class="col-xs-12">
                <p><i class="glyphicon glyphicon-hand-right"></i><a href="{{ url_for('main.category', c=category.name) }}"> {{ category.name }}</a></p>
            </li>
        {% endfor %}
    </ul>
    <ul class="nav nav-pills">
        <li role="presentation" class="col-lg-12">
            <h3>文件归档</h3>
            <br>
        </li>
        {% for tg in g.time_tag %}
            <li role="presentation" class="col-lg-12">
                <p><i class="glyphicon glyphicon-hand-right"></i><a href="{{ url_for('main.archives', time_tag=tg) }}"> {{ tg }}</a></p>
            </li>
        {% endfor %}
    </ul>
    <ul class="nav nav-pills">
        <li role="presentation" class="col-lg-12">
            <h3>近期文章</h3>
            <br>
        </li>
        {% for article in g.recent_articles %}
            <li role="presentation" class="col-lg-12">
                <p><i class="glyphicon glyphicon-hand-right"></i><a href="{{ url_for('main.article', pid=article.id) }}"> {{ article.title|title }}</a></p>
            </li>
        {% endfor %}
    </ul>
    <ul class="nav nav-pills">
        <li role="presentation" class="col-lg-12">
            <h3>标签</h3>
            <br>
        </li>
        <li role="presentation" class="col-lg-12">
            {% for tag in g.tags %}
                <span class="label"><a href="{{ url_for('main.tag', t=tag.name) }}">{{ tag.name }}</a></span>
            {% endfor %}
        </li>
    </ul>
    <ul class="nav nav-pills">
        <li role="presentation" class="col-lg-12">
            <h3>简介</h3>
            <br>
        </li>
        <li>
            <p>喜欢markdown，爱上藕丝空间。</p>
        </li>
    </ul>
</div><!--/.sidebar-offcanvas-->